<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="/pages/layout/mainLayout.xhtml">
	<ui:define name="bodyComUsuario">
		<div class="post">
		<h2 class="title"><h:outputText
			value="#{bundle['locanet.copiaFilme.edicao.titulo']}" /></h2>
		<h:form>
			<h:inputHidden value="#{copiaFilmeBean.entity.id}" />
			<h:panelGrid columns="3">
				<h:inputHidden value="#{copiaFilmeBean.entity.status}" />
				<h:outputLabel for="codigoCopiaFilme"
					value="#{bundle['locanet.Filme.codigo']}" />
				<h:inputText id="codigoCopiaFilme" maxlength="100"
					value="#{copiaFilmeBean.entity.codigo}">
					<f:ajax render="mensagemCogigoCopiaFilme" execute="@this"
						event="blur" />
				</h:inputText>
				<h:messages id="mensagemCogigoCopiaFilme" for="codigoCopiaFilme"
					styleClass="error" />

				<h:outputLabel for="filmeCopiaFilme"
					value="#{bundle['locanet.Filme.filme']}" />
				<h:selectOneMenu id="filmeCopiaFilme"
					value="#{copiaFilmeBean.filme.id}">
					<f:selectItems value="#{copiaFilmeBean.filmes}" var="filme"
						itemValue="#{filme.id}" itemLabel="#{filme.titulo}" />
				</h:selectOneMenu>
				<h:messages for="filmeCopiaFilme" styleClass="error" />

				<h:commandButton value="#{bundle['locanet.butoes.salvar']}"
					action="#{copiaFilmeBean.update}" />
				<h:commandLink immediate="true" action="#{copiaFilmeBean.search}"
					value="#{bundle['locanet.butoes.voltar']}" />
			</h:panelGrid>
		</h:form></div>
	</ui:define>
</ui:composition>
</html>